#define  _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int My_F(int n, int k)
{
	if (k == 0)
	{
		return 1;
	}
	if (k == 1)
	{
		return n;
	}
	else
	{
		return n * My_F(n,k-1);
	}
}
int main()
{
	int n = 0;
	scanf("%d",&n);
	printf("%d\n",My_F(n,3));

	return 0;
}